package com.szrt.listener;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;


/**
 * 监听 HttpSession 的 生  死
 * @author zsrt
 *
 */
public class ScottHttpSessionListener implements HttpSessionListener {
	

	@Override
	public void sessionCreated(HttpSessionEvent se) {
		
		
		String id = se.getSession().getId();
		System.out.println(id);
		System.err.println("=======================>session被创建啦...");
		
	}

	@Override
	public void sessionDestroyed(HttpSessionEvent se) {
		
		
		System.out.println("session被销毁啦...");
		
	}


}
